﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Task:NPC  //任务
    {
        private string deliverNPC;
        private string kilNPC;
        private string collectNPC;

        public string DeliverNPC
        {
            get { return this.deliverNPC; }
            set { this.deliverNPC = value; }
        }
        public string KilNPC
        {
            get { return this.kilNPC; }
            set { this.kilNPC = value; }
        }
        public string CollectNPC
        {
            get { return this.collectNPC; }
            set { this.collectNPC = value; }
        }
        public Task (string name, Type type,string deliverNPC) : base(name, type)
        {
            this.deliverNPC = deliverNPC;
        }
        public override void Say()
        {
            Console.WriteLine(" 憨批快去帮我干活！NPC:{0},任务{1}", this.Name, this.deliverNPC);
        }

    }
}
